package weiss.nonstandard;

// Basic node stored in unbalanced binary search trees
// Note that this class is not accessible outside
// of this package.

class BinaryNode<AnyType> {
	// Data; accessible by other package routines
	AnyType element; // The data in the node
	BinaryNode<AnyType> left; // Left child
	BinaryNode<AnyType> right; // Right child

	// Constructor
	BinaryNode(AnyType theElement) {
		element = theElement;
		left = right = null;
	}

}
